package com.chaofan.sell.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

/**
 * @author: Fairy
 * @date: 2021/9/11
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "wechat")
public class WechatAccountConfig {

    private String mpAppId;

    private String mpAppSecret;

    /**
     * 商户号
     */
    private String mchId;

    /**
     * 商户密钥
     */
    private String mchKey;

    /**
     * 商户证书路径
     */
    private String keyPath;

    /**
     * 微信支付异步通知Url
     */
    private String notifyUrl;

    /**
     * 开放平台appId
     */
    private String openAppId;

    /**
     * 开放平台appSecret
     */
    private String openAppSecret;

    /**
     * 微信模板消息id
     */
    private Map<String, String> templateId;
}
